# -*- coding: utf-8 -*-
"""
Created on Mon Sep 12 16:22:33 2022

@author: Shang'xiang

Stay Hungry Stay Foolish
"""

# 绘制误差下降曲线

import numpy as np
import matplotlib.pyplot as plt

# 读取数据
data01 = np.loadtxt('GN_rms.txt')
data02 = np.loadtxt('GNS_rms.txt')

a, = plt.plot(data01,'r-o')
b, = plt.plot(data02,'b-*')
plt.legend([a,b],['GN','GNS'])
plt.xlabel('iterations')
plt.ylabel('rms')
